﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master"
    CodeBehind="NovoFornecedor.aspx.cs" Inherits="ELoje_web.NovoFornecedor" %>

<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <script src="../Scripts/common.js"></script>
    <script type="text/javascript">

        function salvar() {
            var cnpj = document.getElementById("<%=txtCnpj.ClientID %>").value;
            if (!validarCNPJ(cnpj)) {
                alert('Falha');
                return false;
            }
            alert('Sucesso!');
            return true;
        }
    </script>
    <div class="content">
        <div id="siteMap">
            <div style="float: left;">
                <asp:Label ID="lblHistoryNavigation" runat="server"></asp:Label>
                <asp:Label ID="lblThisPage" runat="server"></asp:Label>
            </div>
            <div style="text-align: right">
                <asp:LinkButton runat="server" ID="lblBack" PostBackUrl="~/Default.aspx">Voltar</asp:LinkButton>
            </div>
        </div>
        <hr class="h1" />
        <div class="buttonBarTop">
            <div class="buttonCollor">
                <asp:Button runat="server" ID="btnCancelar" CssClass="buttonStyles" />
            </div>
            <div class="buttonCollor">
                <asp:Button runat="server" ID="btnSalvar" CssClass="buttonStyles" OnClientClick="return salvar();" OnClick="btnSalvar_Click" />
            </div>
            <div class="buttonCollor">
                <asp:Button runat="server" ID="btnEditar" CssClass="buttonStyles" />
            </div>
        </div>
        <div class="detTransForm">
            <div>
                <div style="width: 80%;" class="floatLeft">
                    <asp:Label ID="lblReplacement" runat="server" CssClass="replacementOfMidas" Visible="false"></asp:Label>
                    <asp:Label ID="lblReplacementOf" runat="server" CssClass="replacementOfMidas" Visible="false"></asp:Label>
                    <div style="width: 20%; text-align: right;">
                        <asp:LinkButton runat="server" ID="lnkLog" OnClick="lnkLog_Click">Log</asp:LinkButton>
                    </div>
                </div>
            </div>
            <div class="form">
                <div class="linhaForm">
                    <label>
                        Razão Social
                        <strong>
                            <asp:Label ID="lblRazaoSocial" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtRazaoSocial" runat="server" Width="250px"></asp:TextBox>
                        <asp:HiddenField ID="hdnCodFornecedor" runat="server" />
                    </label>
                    <label>
                        Nome Fantasia
                        <strong>
                            <asp:Label ID="lblNomeFantasia" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtNomeFantasia" runat="server" Width="255px"></asp:TextBox>
                    </label>
                </div>
                <div class="linhaForm">
                    <label>
                        CNPJ
                    <strong>
                        <asp:Label ID="lblCnpj" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtCnpj" runat="server" Width="180px"></asp:TextBox>
                    </label>
                    <label>
                        Inscrição Estadual
                    <strong>
                        <asp:Label ID="lblIE" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtIE" runat="server" Width="150px"></asp:TextBox>
                    </label>
                    <label>
                        Inscrição Municipal
                    <strong><asp:Label ID="lblIM" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtIM" runat="server" Width="150px"></asp:TextBox>
                    </label>
                </div>
                <div class="linhaForm">
                    <label>
                        DDD
                    <strong>
                        <asp:Label ID="lblddd" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtddd" runat="server" Width="35px"></asp:TextBox>
                    </label>
                    <label>
                        Telefone
                    <strong>
                        <asp:Label ID="lblTelefone" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtTelefone" runat="server" Width="120px"></asp:TextBox>
                    </label>
                    <label>
                        Email
                    <strong>
                        <asp:Label ID="lblEmail" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtEmail" runat="server" Width="150px"></asp:TextBox>
                    </label>
                    <label>
                        Site
                    <strong>
                        <asp:Label ID="lblSite" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtSite" runat="server" Width="150px"></asp:TextBox>
                    </label>
                </div>
                <div class="linhaForm">
                    <label>
                        Rua
                    <strong>
                        <asp:Label ID="lblRua" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtRua" runat="server" Width="190px"></asp:TextBox>
                    </label>
                    <label>
                        Nº
                    <strong>
                        <asp:Label ID="lblNumero" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtNumero" runat="server" Width="35px"></asp:TextBox>
                    </label>
                    <label>
                        Complemento
                    <strong>
                        <asp:Label ID="lblComplemento" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtComplemento" runat="server" Width="78px"></asp:TextBox>
                    </label>
                    <label>
                        Bairro
                    <strong>
                        <asp:Label ID="lblBairro" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtBairro" runat="server" Width="150px"></asp:TextBox>
                    </label>
                </div>
                <div class="linhaForm">
                    <label>
                        Cep
                    <strong>
                        <asp:Label ID="lblCep" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtCep" runat="server" Width="78px"></asp:TextBox>
                    </label>
                    <label>
                        Cidade
                    <strong>
                        <asp:Label ID="lblCidade" runat="server"></asp:Label></strong>
                        <asp:TextBox ID="txtCidade" runat="server" Width="210px"></asp:TextBox>
                    </label>
                    <label>
                        Estado
                    <strong>
                        <asp:Label ID="lblEstado" runat="server"></asp:Label></strong>
                        <asp:DropDownList ID="ddlEstado" runat="server" Width="190px"></asp:DropDownList>
                    </label>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
